﻿using BBInterfaceNET.Designer.ViewModels;
using BBInterfaceNET.Designer.Views;

namespace BBInterfaceNET.Designer.Services
{
    public class AddFieldService : IAddFieldService
    {
        public bool ShowAddFieldView(AddFieldViewModel vm)
        {
            AddFieldView view = new AddFieldView();
            view.DataContext = vm;
            bool? res = view.ShowDialog();
            if (res != null && res.Value) return true;
            return false;
        }
    }
}
